#include "ACAutomation.hpp"
#include <iostream>
using namespace std;

int main(int argc, const char** argv) {
    ACAutomation ac;
    ac.insertPattern("abc");
    ac.insertPattern("abb");
    ac.insertPattern("bacc");
    ac.insertPattern("cadb");
    cout << (ac.lookupPattern("abc") ? "abc in" : "abc not in") << endl;;
    ac.matchText("abcabaccadbaccbabc");
    return 0;
}